import { useEffect, useState } from 'react';
import styles from './index.less';
import { Button, Space } from 'antd';
import usePageAccess from '@/components/usePageAccess';

const MarketingPage: React.FC = () => {
  const [count, setCount] = useState(0);
  const access = usePageAccess()

  useEffect(() => {
  }, []);
  
  return (
    <div className={styles.container}>
      <Space direction='vertical'>
        <span>营销中心</span>
        <Space>
          {count}
          <Button onClick={() => setCount(count+1)}>Add</Button>
        </Space>
        <div>元素权限: {JSON.stringify(access)}</div>
      </Space>
    </div>
  );
};

export default MarketingPage;
